/**
 * Created by tjx on 2015/10/22.
 */

var app=angular.module('myApp',[]);
app.controller('test',function($scope){
    $scope.first='tan';
    $scope.last='jiaXing';
    $scope.full=function(){
        return $scope.first+$scope.last;
    }
});
app.controller('namesCtrl', function($scope) {
    $scope.names = [
        {name:'Jani',country:'Norway'},
        {name:'Hege',country:'Sweden'},
        {name:'Kai',country:'Denmark'}
    ];
});